Page({
    data: {
      array: []
    },
    onLoad: function (options) {
      wx.request({
        url: 'http://localhost:8080/xingfa',
        header: {
          'content-type': 'application/json'
        },
        success: res => {
          console.log(res.data)
          this.setData({
            array: res.data
          })
        }
      })
    },
  })
  
  